package com.yunji.web.cabinet;

import com.yunji.cabinet.business.TakeDeliveryBusiness;
import com.yunji.cabinet.domain.TakeDeliveryInfoDO;
import com.yunji.cabinet.params.TakeDeliverParam;
import com.yunji.common.base.response.Response;
import com.yunji.common.base.response.ResponseHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "管理端-取货详情")
@RestController
@RequestMapping("/container/takeDelivery")
public class TakeDeliveryInfoController {

    @Resource
    TakeDeliveryBusiness business;

    @ApiOperation("详情查询")
    @GetMapping("/list")
    public Response<List<TakeDeliveryInfoDO>> list(TakeDeliverParam param) {
        return ResponseHelper.successWithPage(business.getInfoList(param));
    }

}
